package com.ruoyi.system.domain;

import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品对象 commodity
 *
 * @author ruoyi
 * @date 2023-02-20
 */
@Data
public class Commodity extends BaseEntity
{
        private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 商品名称 */
    @Excel(name = "商品名称")
    private String name;

    /** 商品数量 */
    @Excel(name = "商品数量")
    private Long number;

    @Excel(name = "商品类型")
    private String type ;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal price;

    /** 图片 */
    @Excel(name = "图片")
    private String image;

    /** 所属门店 */
    @Excel(name = "所属门店")
    private Long ownerShop;

    private String roles ;

    /** 版本号 */
    @Excel(name = "版本号")
    private Long reversion;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setNumber(Long number)
    {
        this.number = number;
    }

    public Long getNumber()
    {
        return number;
    }
    public void setPrice(BigDecimal price)
    {
        this.price = price;
    }

    public BigDecimal getPrice()
    {
        return price;
    }
    public void setImage(String image)
    {
        this.image = image;
    }

    public String getImage()
    {
        return image;
    }
    public void setOwnerShop(Long ownerShop)
    {
        this.ownerShop = ownerShop;
    }

    public Long getOwnerShop()
    {
        return ownerShop;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("name", getName())
            .append("number", getNumber())
            .append("price", getPrice())
            .append("image", getImage())
            .append("ownerShop", getOwnerShop())
            .toString();
    }
}
